<template>
  <div>
      <van-field label="请输入手机号" v-model="mobile" />
      <van-field label="请输入验证码" v-model="code" /><van-button @click="send">发送验证码</van-button>
    <van-button>登录</van-button>
  </div>
</template>

<script>
export default {
  name: "ringup",
  data() {
    return {
      mobile:"",
      code:""
    }
  },
  methods: {
    send(){
      this.axios.post('course/sendSms' ,{'mobile':this.mobile})
      .then(res=>{
        if (res.data.code==200){
          alert('发送成功')
        }
      })
    }
  },
  mounted() {
  }
}
</script>

<style scoped>

</style>
